package com.wmz.springcloud.service;

import com.wmz.springCloud.common.CommonResult;
import com.wmz.springCloud.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface RemotePaymentService {

    @GetMapping("/payment/getFeignOK/{id}")
    public CommonResult<Payment> getFeignOK(@PathVariable("id") Long id);

    @GetMapping("/payment/getFeignTimeOut/{id}")
    public CommonResult<Payment> getFeignTimeOut(@PathVariable("id") Long id);
}
